//
//  FNKViewController.m
//  FNKBaseAipKit
//
//  Created by LWW on 10/15/2021.
//  Copyright (c) 2021 LWW. All rights reserved.
//

#import "FNKViewController.h"
#import <APIBaseRequest.h>

@interface FNKViewController ()


@property (nonatomic,strong)APIBaseRequest *request;

@end

@implementation FNKViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor redColor];
    
    _request = [APIBaseRequest alloc];
    APIBaseRequestHandler*res = [APIBaseRequestHandler new];
    res.apiRequestURLString = [NSString stringWithFormat:@"%@",@"http://isdk.zaoyx.com/api/v7/game/list"];
    res.apiRequestParams=@{@"app_id":@"101",@"client_id":@"4462",@"from":@"4"};
    _request.request=res;
    _request.method = POST;
    _request.isCache = YES;
    [_request apiRequestSuccess:^(NSDictionary * _Nonnull data) {
        NSLog(@"%@",data);
         
    } failure:^(NSError * _Nonnull error) {
         
    }];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
